package com.itheima.mapper.backend;

import com.itheima.pojo.backend.Employee;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface EmployeeDao {

   /**
    * 登入
    * @param
    * @return
    */
   Employee login(Employee employee);



   /**
    * 分页查询
    */
   List<Employee> select(String name);

   /**
    * 按id查询
    * @param id
    * @return
    */
   Employee  selectByid(@Param("id") Integer id);


   List<Employee>  isExist(Employee employee);

   /**
    * 添加
    * @param employee
    * @return
    */
   int add(Employee employee);


   int updatemp(Employee employee);
}
